<%@ include file="/WEB-INF/views/taglib.jsp" %>
<c:set var="systemUser" value="${systemUserForm.systemUser}"></c:set>
<c:url value="/ajax/section" var="sectionUrl"></c:url>
<c:url value="/ajax/role" var="roleUrl"></c:url>
	<h3>User Password Form</h3>
	<form:form id="form" method="post" modelAttribute="systemUserForm" cssClass="simpleForm">
		<form:hidden path="formMode" />
		<form:hidden path="systemUser.userName" />
		
	 	<div class="clear" style="height:1px">&nbsp;</div>
		<jsp:include page="/WEB-INF/views/message.jsp"></jsp:include>
		<div class="span-24">
	  	<fieldset>
	  		<legend>User Password</legend>
	  		<aims:column cssErrorClass="error" path="systemUser.userName">
	  		<form:label path="systemUser.userName">
	  			User Name  
	 		</form:label>
	  		${systemUser.userName} 
			</aims:column>
			<aims:column cssErrorClass="error" path="systemUser.password">
	  		<form:label path="systemUser.password">
	  			New Password <form:errors path="systemUser.password"  cssClass="errorSimple" />
	 		</form:label>
	  		<form:password path="systemUser.password"  /> 
			</aims:column>
			<aims:column cssErrorClass="error" path="confirmPassword">
	  		<form:label path="confirmPassword">
	  			Confirm Password 
	 		</form:label>
	  		<form:password path="confirmPassword" /> <form:errors path="confirmPassword" cssClass="errorSimple"  />
	  		</aims:column>
			
	 	</fieldset>
	 	</div>
	 	<div class="action">
 				<button type="submit"  class="button positive">
				Update</button>
 				<a class="button" href="<c:url value="/user/update/${systemUser.userName}" />">Back</a>
		</div>
	</form:form>
	<script type="text/javascript">
	
		$(document).ready(function() {
			initSectionDropDown('sectionId','${systemUserForm.systemUser.department.departmentId}','${systemUserForm.systemUser.section.sectionId}');
			initRoleCheckbox('divRoleId','${systemUserForm.systemUser.section.sectionId}','${systemRoleIds}');
			
		});

	</script>